package com.mall.bargain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author LiJinYang
 * @version 1.0
 * @email 283006176@qq.com
 * @date 2021/07/21 15:03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BargainUser {

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 砍价活动ID
     */
    private Integer bargainId;

    /**
     * 砍价状态
     */
    private String status;

    /**
     * 已砍金额
     */
    private BigDecimal yetPrice;

    /**
     * 完成率
     */
    private BigDecimal finishRate;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 用户名
     */
    private String name;

    /**
     * 头像
     */
    private String url;
}
